<template>
  <div class="q-pa-md">
    <t-input filled v-model="input" mask="date" :rules="['date']">
      <template v-slot:append>
        <t-icon name="event" class="cursor-pointer">
          <t-popup-proxy cover :breakpoint="600">
            <t-date v-model="input" />
          </t-popup-proxy>
        </t-icon>
      </template>
    </t-input>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        input: ref(''),
        date: ref('2018/11/03'),
      };
    },
  };
</script>
